home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / grafik / miro / video / vid20_sv / win_nt / 20svnt.exe / OEMSETUP.INF < prev    next >
INI File  |  1995-10-30  |  19KB  |  427 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3.  
  4. [LanguagesSupported]
  5.     ENG
  6.  
  7. [ProgressCopyENG]
  8.     ProCaption   = "Windows NT Setup"
  9.     ProCancel    = "Cancel"
  10.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  11.                    "to cancel copying files?"
  12.     ProCancelCap = "Setup Message"
  13.     ProText1     = "Copying:"
  14.     ProText2     = "To:"
  15.  
  16. [StringsENG]
  17.     String1 = "Display"
  18.     String2 = "Please enter the full path to the Windows NT Display "+
  19.               "driver files.  If you want to install files from the "+
  20.               "original Setup floppy disks, type a drive letter (such "+
  21.               "as A:) and Setup will prompt you for the correct disk.  "+
  22.               "Then choose Continue."
  23.  
  24. [Source Media Descriptions]
  25.     1 = "miro.plus high-speed drivers setup disk", TAGFILE = miro
  26.  
  27. [OptionsTextENG]
  28.     "crystals" = "miroVIDEO (single screen)"
  29.  
  30. [Options]
  31.     "crystals" = crystals
  32.  
  33. [MiniportDrivers]
  34.     crystals = crystals, !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, {crystals}, 0, "%SystemRoot%\System32\IoLogMsg.dll", 7, 1, {cpl,cplt           }, noconfig
  35.     crystal2 = crystal2, !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, {crystal2}, 0, "%SystemRoot%\System32\IoLogMsg.dll", 6, 1, {cpl,cplt,mtwc,mtwcd}, noconfig
  36.  
  37. [Files-DisplayDLLs]
  38.     crystals = 1, CRYSTALS.DLL, SIZE=110000
  39.     crystal2 = 1, CRYSTAL2.DLL, SIZE=110000
  40.  
  41. [Files-DisplayMiniportDrivers]
  42.     crystals = 1, CRYSTALS.SYS, SIZE=75000
  43.     crystal2 = 1, CRYSTAL2.SYS, SIZE=75000
  44.  
  45. [Files-Other]
  46.     cpl      = 1, MLINADDR.CPL, SIZE=60000
  47.     cplt     = 1, CRYSTAL2.CPL, SIZE=60000
  48.     mtwc     = 1, MTWINCON.EXE, SIZE=50000
  49.     mtwcd    = 1, MTWINDLL.DLL, SIZE=50000
  50.  
  51. [Files-Ini]
  52.     i00 = 1, CARD000A.INI, SIZE=15000
  53.     i01 = 1, CARD000B.INI, SIZE=15000
  54.     i02 = 1, CARD000D.INI, SIZE=15000
  55.     i03 = 1, CARD000E.INI, SIZE=15000
  56.     i04 = 1, CARD000F.INI, SIZE=15000
  57.     i05 = 1, CARD0010.INI, SIZE=15000
  58.     i06 = 1, CARD0012.INI, SIZE=15000
  59.     i07 = 1, CARD0015.INI, SIZE=15000
  60.     i08 = 1, CARD0016.INI, SIZE=15000
  61.     i09 = 1, CARD0017.INI, SIZE=15000
  62.     i10 = 1, CARD010A.INI, SIZE=15000
  63.     i11 = 1, CARD010B.INI, SIZE=15000
  64.     i12 = 1, CARD010D.INI, SIZE=15000
  65.     i13 = 1, CARD010E.INI, SIZE=15000
  66.     i14 = 1, CARD0115.INI, SIZE=15000
  67.     i15 = 1, CARD020D.INI, SIZE=15000
  68.     i16 = 1, CARD020E.INI, SIZE=15000
  69.     i17 = 1, CARD0210.INI, SIZE=15000
  70.     i18 = 1, CARD0211.INI, SIZE=15000
  71.     i19 = 1, CARD0212.INI, SIZE=15000
  72.     i20 = 1, CARD0213.INI, SIZE=15000
  73.     i21 = 1, CARD0214.INI, SIZE=15000
  74.     i22 = 1, CARD030B.INI, SIZE=15000
  75.     i23 = 1, CARD0311.INI, SIZE=15000
  76.     i24 = 1, CARD0313.INI, SIZE=15000
  77.     i25 = 1, CARD040B.INI, SIZE=15000
  78.     i26 = 1, CARD0510.INI, SIZE=15000
  79.     i27 = 1, CARD0513.INI, SIZE=15000
  80.     i28 = 1, CARD0610.INI, SIZE=15000
  81.     i29 = 1, MIROHW.INI,   SIZE=15000
  82.     i30 = 1, MIRONAME.INI, SIZE=15000
  83.     i31 = 1, MONITOR.INI,  SIZE=80000
  84.     i32 = 1, TIMING.INI,   SIZE=80000
  85.  
  86. [OpenGLDrivers]
  87.  
  88. [Identify]
  89.     read-syms Identification
  90.     set Status     = STATUS_SUCCESSFUL
  91.     set Identifier = $(OptionType)
  92.     set Media      = #("Source Media Descriptions", 1, 1)
  93.     Return $(Status) $(Identifier) $(Media)
  94.  
  95. [ServicesEntry]
  96.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  97.  
  98. [SystemVariables]
  99.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  100.     STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
  101.  
  102. [InstallOption]
  103.     set Status       = STATUS_FAILED
  104.     set DrivesToFree = {}
  105.     set !Option   = $($1)
  106.     set SrcDir    = $($2)
  107.     set AddCopy   = $($3)
  108.     set DoCopy    = $($4)
  109.     set DoConfig  = $($5)
  110.     set DoInstall = $($6)
  111.     set LanguageList = ^(LanguagesSupported, 1)
  112.     Ifcontains(i) $($0) in $(LanguageList)
  113.     else
  114.         set Status = STATUS_NOLANGUAGE
  115.         goto finish_InstallOption
  116.     endif
  117.     read-syms Strings$($0)
  118.     ifstr(i) $(!Option) != "DETECT"
  119.         set OptionList = ^(Options, 0)
  120.         ifcontains $(!Option) in $(OptionList)
  121.         else
  122.             goto finish_InstallOption
  123.         endif
  124.         set OptionList = ""
  125.         set DriverEntry       =   #(Options, $(!Option), 1)
  126.         set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  127.         set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  128.         set OtherFiles        =   #(MiniportDrivers, $(DriverEntry), 10)
  129.     endif
  130.     read-syms ServicesEntry
  131.     detect    ServicesEntry
  132.     set DriversList        = ^(MiniportDrivers, 0)
  133.     set MiniportDriverList = ^(Files-DisplayMiniportDrivers, 0)
  134.     set DisplayDriverList  = ^(Files-DisplayDLLs, 0)
  135.     set OpenGLDriverList   = ^(OpenGLDrivers, 0)
  136.     set OtherFilesList     = ^(Files-Other, 0)
  137. installtheoption = +
  138.     ifstr(i) $(AddCopy) == "YES"
  139.         ifstr(i) $(!Option) == "DETECT"
  140.             set DoActualCopy = YES
  141.         else
  142.             set DoActualCopy = NO
  143.             set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  144.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  145.             ifstr(i) $(STATUS) == NO
  146.                 set DoActualCopy = YES
  147.                 goto addfiles
  148.             endif
  149.             ForListDo $(OtherFiles)
  150.                  ifcontains $($) in $(OtherFilesList)
  151.                     set FileToCheck = #(Files-Other, $($), 2)
  152.                     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  153.                     ifstr(i) $(STATUS) == NO
  154.                         set DoActualCopy = YES
  155.                         goto addfiles
  156.                     endif
  157.                  endif
  158.             EndForListDo
  159.             ForListDo $(InstalledDisplays)
  160.                 ifcontains $($) in $(DisplayDriverList)
  161.                     set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  162.                     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  163.                     ifstr(i) $(STATUS) == NO
  164.                         set DoActualCopy = YES
  165.                         goto addfiles
  166.                     endif
  167.                     ifcontains $($) in $(OpenGLDriverList)
  168.                         set FileToCheck = #(Files-DisplayOpenGLDrivers, #(OpenGLDrivers, $($), 1), 2)
  169.                         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  170.                         ifstr(i) $(STATUS) == NO
  171.                             set DoActualCopy = YES
  172.                             goto addfiles
  173.                         endif
  174.                     endif
  175.                 endif
  176.             EndForListDo
  177.         endif
  178. addfiles = +
  179.         ifstr(i) $(DoActualCopy) == NO
  180.             shell "subroutn.inf" DriversExist $($0) $(String1)
  181.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  182.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  183.                 goto finish_InstallOption
  184.             endif
  185.             ifstr(i) $($R0) == STATUS_CURRENT
  186.             else-ifstr(i) $($R0) == STATUS_NEW
  187.                 set DoActualCopy = YES
  188.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  189.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  190.                 goto finish_InstallOption
  191.             else
  192.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  193.                 goto finish_InstallOption
  194.             endif
  195.         endif
  196.         ifstr(i) $(DoActualCopy) == YES
  197.             shell "registry.inf" GetNTSource
  198.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  199.             else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  200.             else
  201.                 set SrcDir = $($R1)
  202.             endif
  203.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  204.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  205.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  206.                 goto finish_InstallOption
  207.             endif
  208.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  209.                 set SrcDir = $($R1)
  210.                 ifstr(i) $($R2) != ""
  211.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  212.                 endif
  213.             else
  214.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  215.                 goto finish_InstallOption
  216.             endif
  217.             ifstr(i) $(!Option) != "DETECT"
  218.                 install Install-AddCopyOption
  219.             else
  220.                 install Install-AddAllCopy
  221.             endif
  222.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  223.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  224.                 goto finish_InstallOption
  225.             endif
  226.         else
  227.             set DoCopy = NO
  228.         endif
  229.     endif
  230.     ifstr(i) $(DoCopy) == "YES"
  231.         read-syms ProgressCopy$($0)
  232.         install Install-DoCopyOption
  233.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  234.             Debug-Output "Copying files failed"
  235.             goto finish_InstallOption
  236.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  237.             set Status = STATUS_USERCANCEL
  238.             goto finish_InstallOption
  239.         endif
  240.     endif
  241.     ifstr(i) $(DoConfig) == "YES"
  242.         shell "registry.inf" CheckSetupModify
  243.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  244.             goto finish_InstallOption
  245.         endif
  246.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  247.             goto finish_InstallOption
  248.         endif
  249.         ForListDo $(DriversList)
  250.             ifstr(i) $(!Option) == "DETECT"
  251.                 set DriverEntry = $($)
  252.                 set DeviceDescription = ""
  253.                 set ErrorControl      = $(!SERVICE_ERROR_IGNORE)
  254.                 ifcontains #(MiniportDrivers, $(DriverEntry), 1) in $(MiniportDriverList)
  255.                     ifint #(MiniportDrivers, $(DriverEntry), 9) == 1
  256.                         set configDriver = YES
  257.                     else
  258.                         set configDriver = NO
  259.                     endif
  260.                 else
  261.                     set configDriver = NO
  262.                 endif
  263.             else
  264.                 set DeviceDescription = $(!Option)
  265.                 set ErrorControl      = $(#(MiniportDrivers, $(DriverEntry), 4))
  266.                 ifstr(i) $(DriverEntry) == $($)
  267.                     set configDriver = YES
  268.                 else
  269.                     set configDriver = NO
  270.                 endif
  271.             endif
  272.             ifstr(i) $(configDriver) == YES
  273.                 Debug-Output "configuring the miniport driver"
  274.                 set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  275.                 set Type              = $(#(MiniportDrivers, $(DriverEntry), 2))
  276.                 set Group             =   #(MiniportDrivers, $(DriverEntry), 3)
  277.                 set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  278.                 set VgaCompatible     =   #(MiniportDrivers, $(DriverEntry), 6)
  279.                 set EventMessageFile  =   #(MiniportDrivers, $(DriverEntry), 7)
  280.                 set TypesSupported    =   #(MiniportDrivers, $(DriverEntry), 8)
  281.                 set ServiceNode   = $(DriverEntry)
  282.                 set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  283.                 set ServicesValues = { +
  284.                         {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  285.                         {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  286.                         {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  287.                         {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  288.                         }
  289.                 ifstr(i) $(DoInstall) == "YES"
  290.                     set ServicesValues = >($(ServicesValues), +
  291.                             {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) })
  292.                 else
  293.                     set ServicesValues = >($(ServicesValues), +
  294.                             {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_DISABLED)     })
  295.                 endif
  296.                 set !ParametersValues = { +
  297.                         {"Device Description",        0, $(!REG_VT_SZ),       $(DeviceDescription) }, +
  298.                         {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  299.                         {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  300.                         {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    0                    }, +
  301.                         {DefaultSettings.VRefresh,    0, $(!REG_VT_DWORD),    0                    }, +
  302.                         {DefaultSettings.Interlaced,  0, $(!REG_VT_DWORD),    0                    }, +
  303.                         {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    0                    }, +
  304.                         {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    0                    }, +
  305.                         {DoLinearAddressing,          0, $(!REG_VT_DWORD),    0                    }, +
  306.                         {Primary.IsLeft,              0, $(!REG_VT_DWORD),    0                    }, +    
  307.                         {TwinControlFlag,             0, $(!REG_VT_DWORD),    0                    }  +    
  308.                         }
  309.                 ifstr(i) $(!Option) != "DETECT"
  310.                     shell "" #(MiniportDrivers, $(DriverEntry), 11)
  311.                 endif
  312.                 set DeviceValues = {}
  313.                 set EventLogValues = { +
  314.                         {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  315.                         {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  316.                         }
  317.                 shell "registry.inf"  MakeServicesEntry $(ServiceNode)       +
  318.                                                         $(ServicesValues)    +
  319.                                                         $(!ParametersValues) +
  320.                                                         $(DeviceValues)      +
  321.                                                         $(EventLogValues)    +
  322.                                                         Device0
  323.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  324.                     Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  325.                     goto finish_InstallOption
  326.                 endif
  327.                 ifstr(i) $($R0) != STATUS_SUCCESSFUL
  328.                     Debug-Output "MakeServicesEntry failed for video"
  329.                     goto finish_InstallOption
  330.                 endif
  331.                 ForListDo $(InstalledDisplays)
  332.                     ifcontains $($) in $(OpenGLDriverList)
  333.                         set KeyPath = { +
  334.                                 {SOFTWARE,       0, $(MaskAllAccess)}, +
  335.                                 {Microsoft,      0, $(MaskAllAccess)}, +
  336.                                 {"Windows NT",   0, $(MaskAllAccess)}, +
  337.                                 {CurrentVersion, 0, $(MaskAllAccess)}, +
  338.                                 {OpenGLDrivers,  0, $(MaskAllAccess)}  +
  339.                                 }
  340.                         set KeyValue = { +
  341.                                 {$($), 0, $(!REG_VT_SZ), #(OpenGLDrivers, $($), 1) } +
  342.                                 }
  343.                         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValue)
  344.                         Debug-Output "just did an OGL section"
  345.                         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  346.                             Debug-Output "Couldn't execute CreateKey in registry.inf"
  347.                             goto endInstallOpenGLDriver
  348.                         endif
  349.                         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  350.                             Debug-Output "CreateKey failed for OGLDrivers"
  351.                             goto endInstallOpenGLDriver
  352.                         endif
  353.                         Debug-Output "VIDEO.INF: success installing an ogl entry"
  354.                     endif
  355.                 EndForListDo
  356.             endif
  357.         EndForListDo
  358.     endif
  359.     set Status = STATUS_SUCCESSFUL
  360. finish_InstallOption = +
  361.     ForListDo $(DrivesToFree)
  362.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  363.     EndForListDo
  364.     Return $(Status)
  365.  
  366. [Install-AddCopyOption]
  367.     Debug-Output "adding to copy list"
  368.     set STF_VITAL = ""
  369.  
  370.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  371.                                   $(MiniportDriver)              +
  372.                                   $(SrcDir)                      +
  373.                                   $(!STF_WINDOWSSYSPATH)\drivers
  374.  
  375.     AddSectionFilesToCopyList     Files-Ini                      +
  376.                                   $(SrcDir)                      +
  377.                                   $(!STF_WINDOWSSYSPATH)\drivers
  378.  
  379.     ForListDo $(OtherFilesList)
  380.         ifcontains $($) in $(OtherFiles)
  381.             Debug-Output "adding other files to copy list"
  382.             AddSectionKeyFileToCopyList   Files-Other                +
  383.                                           $($)                       +
  384.                                           $(SrcDir)                  +
  385.                                           $(!STF_WINDOWSSYSPATH)
  386.         endif
  387.     EndForListDo
  388.  
  389.     ForListDo $(InstalledDisplays)
  390.         ifcontains $($) in $(DisplayDriverList)
  391.             Debug-Output "adding display driver to copy list"
  392.             AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  393.                                           $($)                       +
  394.                                           $(SrcDir)                  +
  395.                                           $(!STF_WINDOWSSYSPATH)
  396.             ifcontains $($) in $(OpenGLDriverList)
  397.                 Debug-Output "adding opengl driver to copy list"
  398.                 AddSectionKeyFileToCopyList   Files-DisplayOpenGLDrivers +
  399.                                               #(OpenGLDrivers, $($), 1)  +
  400.                                               $(SrcDir)                  +
  401.                                               $(!STF_WINDOWSSYSPATH)
  402.             endif
  403.         endif
  404.     EndForListDo
  405.     exit
  406.  
  407. [Install-AddAllCopy]
  408.     Debug-Output "adding all drivers to copy list"
  409.     set STF_VITAL = ""
  410.     AddSectionFilesToCopyList  Files-DisplayMiniportDrivers   +
  411.                                $(SrcDir)                      +
  412.                                $(!STF_WINDOWSSYSPATH)\drivers
  413.     AddSectionFilesToCopyList  Files-DisplayDLLs            +
  414.                                $(SrcDir)                    +
  415.                                $(!STF_WINDOWSSYSPATH)
  416.     exit
  417.  
  418. [Install-DoCopyOption]
  419.     CopyFilesInCopyList
  420.     exit
  421.  
  422. [noconfig]
  423.     return
  424.  
  425. [twinconfig]
  426.     return
  427.